<?php

defined('SYSPATH') or die('No direct script access.');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Task_Email extends Minion_Task {

    protected $_options = array(
        'uniqueid' => null
    );

    protected function _execute(array $params)
    {
        if(empty($params['uniqueid'])){
            die;
        }
        $cache = Cache::instance();
        $email = $cache->get($params['uniqueid']);
        $email->sent();
        $cache->delete($params['uniqueid']);
        die;
    }

}

?>
